<?php
//todo 这里需要引入config吗?20220207
//common js里面会有个ajax请求过来的
include_once ("../config.php");


$act = isset($_REQUEST['act']) ? $_REQUEST['act'] : '';

setcookie("screen",'',0);

$screen = '';
if($act != '' && $act == 'update_screen'){
	$width = $_REQUEST['width'];
	$height = $_REQUEST['height'];
	$screen = $width.','.$height;
	setcookie("screen",$screen,time()+(2*3600),'/');
	print_r($screen);
	exit;
}
?>